package com.trace.demo.dto;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class DistributionInfoRequest {
    private Date purchaseTime;
    private String channel;
    
    @Min(value = 1, message = "数量必须大于0")
    private Integer quantity;
    
    @Min(value = 0, message = "价格不能为负数")
    private Double price;
    
    private Date saleTime;
    private String saleLocation;
    private Integer saleQuantity;
    private Double salePrice;
    
    private String batchId;
    
    // Getters and Setters
    public Date getPurchaseTime() {
        return purchaseTime;
    }
    
    public void setPurchaseTime(Date purchaseTime) {
        this.purchaseTime = purchaseTime;
    }
    
    public String getChannel() {
        return channel;
    }
    
    public void setChannel(String channel) {
        this.channel = channel;
    }
    
    public Integer getQuantity() {
        return quantity;
    }
    
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    
    public Double getPrice() {
        return price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }
    
    public Date getSaleTime() {
        return saleTime;
    }
    
    public void setSaleTime(Date saleTime) {
        this.saleTime = saleTime;
    }
    
    public String getSaleLocation() {
        return saleLocation;
    }
    
    public void setSaleLocation(String saleLocation) {
        this.saleLocation = saleLocation;
    }
    
    public Integer getSaleQuantity() {
        return saleQuantity;
    }
    
    public void setSaleQuantity(Integer saleQuantity) {
        this.saleQuantity = saleQuantity;
    }
    
    public Double getSalePrice() {
        return salePrice;
    }
    
    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }
    
    public String getBatchId() {
        return batchId;
    }
    
    public void setBatchId(String batchId) {
        this.batchId = batchId;
    }
} 